home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
science
/
sm32a.zip
/
LIBRARY
/
FAC.LI
< prev
next >
Wrap
Text File
|
1993-12-23
|
264b
|
12 lines
# n! = fac(n), factorial
# e.g. 3!=1*2*3=6
0! := 1
1! := 1
inf! := inf
n_ ! := if(n>170, inf)
x_ ! := if(x>1, x*(x-1)! )
#x_ ! := if( numeric==on, gamma(x+1), if(x>1 x*(x-1)! ))
#n_! := if( n>1 and isinteger(n), n*(n-1)!, if(numeric==on, gamma(n+1))